package com.zky.group.groupshop.feign;

import com.zky.common.entity.BargainEntity;
import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("bargain-demo")
@RequestMapping("price/bargain")
public interface BargainFeignService {

    @RequestMapping("/info/{bargainId}")
//    @RequiresPermissions("price:bargain:info")
    public R info(@PathVariable("bargainId") Long bargainId);

    @RequestMapping("/findByGoodsId/{goodsId}")
    public BargainEntity findByGoodsId(@PathVariable("goodsId")Long goodsId);

}
